package com.gitee.wsl.common.svg.elements

import com.gitee.wsl.common.svg.attributes.AttributeType
import com.gitee.wsl.common.svg.attributes.FloatAttributeProperty
import com.gitee.wsl.common.svg.attributes.HasAttributes
import com.gitee.wsl.common.svg.attributes.HasAttributesImpl

class OVAL(validation: Boolean = false, hasAttributes: HasAttributes = HasAttributesImpl(validation)) :
    Region("ellipse", validation, hasAttributes) {

    /**
     * centerX
     */
     var cx :Float? by FloatAttributeProperty(type = AttributeType.Length)

    /**
     * centerY
     */
     var cy :Float? by FloatAttributeProperty(type = AttributeType.Length)

    /**
     * radius of axis-X
     */
    var rx :Float? by FloatAttributeProperty(type = AttributeType.Length)

    /**
     * radius of axis-Y
     */
    var ry :Float? by FloatAttributeProperty(type = AttributeType.Length)

}